package com.ymatou.query.seller.trading.api.parameter;

public class Pagination {
	public Pagination() {

	}

	public Pagination(int pageIndex, int pageSize) {
		this.PageIndex = pageIndex;
		this.PageSize = pageSize;

		this.PageItemIndexFrom = pageSize * (pageIndex - 1) + 1;
		this.PageItemIndexTo = pageSize * pageIndex;
	}

	private int PageIndex;

	private int PageSize;

	private int PageItemIndexFrom;

	private int PageItemIndexTo;

	private int TotalItemsCount;

	public static final Pagination From1To10000 = new Pagination(1, 10000);

	public int getPageIndex() {
		return PageIndex;
	}

	public void setPageIndex(int pageIndex) {
		PageIndex = pageIndex;
	}

	public int getPageSize() {
		return PageSize;
	}

	public void setPageSize(int pageSize) {
		PageSize = pageSize;
	}

	public int getPageItemIndexFrom() {
		return PageItemIndexFrom;
	}

	public void setPageItemIndexFrom(int pageItemIndexFrom) {
		PageItemIndexFrom = pageItemIndexFrom;
	}

	public int getPageItemIndexTo() {
		return PageItemIndexTo;
	}

	public void setPageItemIndexTo(int pageItemIndexTo) {
		PageItemIndexTo = pageItemIndexTo;
	}

	public int getTotalItemsCount() {
		return TotalItemsCount;
	}

	public void setTotalItemsCount(int totalItemsCount) {
		TotalItemsCount = totalItemsCount;
	}

	public static Pagination getFrom1to10000() {
		return From1To10000;
	}

}
